<!DOCTYPE html>
<html lang="zh-CN">
	<head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
		<title>隐私政策</title>
	</head>
    <style type="text/css">
        #agreement {padding: 30rpx;} h4 {text-align: center;}
    </style>
	<body>
		<div>
            <h4 id="title"></h4>
            <div id="agreement"> </div>
		</div>
        <script type="text/javascript">
            const box = document.getElementById("agreement");
            const title = document.getElementById("title");
            var ajax = new XMLHttpRequest();
            ajax.open('get','https://api.nskuaila.com/api/pagedata/article/position/POSITION_AGREEMENT_PRIVACY/first');
            ajax.send();
            ajax.onreadystatechange = function () {
               if (ajax.readyState==4 &&ajax.status==200) {
					console.log('JSON.parse(ajax.responseText): ',JSON.parse(ajax.responseText));
					const res = JSON.parse(ajax.responseText);
					if (res.code == 200) {
						box.innerHTML = res.data.content;
						title.innerHTML = res.data.articleName || '隐私政策';
					}
              　　}
            }
        </script>
	</body>
</html>
